package services

import (
	"ssims/dao"
	"ssims/models"
)

func GetAllGener(gener map[string]interface{}) (error, []models.Gener, int64) {
	err, generData, total := dao.GetAllGener(gener)
	return err, generData, total
}

func GetNumbers(gener map[string]interface{}) (error, []models.Tji, int64) {
	err, numbersData, total := dao.GetNumbers(gener)
	return err, numbersData, total
}

func DelGener(gen_id string) error {
	err := dao.DelGener(gen_id)
	return err
}

func UpdateGener(gener models.Gener) error {
	err := dao.UpdateGener(gener)
	return err
}

func AddGener(gener models.Gener) error {
	err := dao.AddGener(gener)
	return err
}
